package com.gem.enums;

/**
 * Author: Xhy
 * CreateTime: 2022-09-17 16:01
 */
public enum GemType {

    BLUE(1,"蓝宝石"),
    RED(2,"红宝石"),
    BLACK(3,"黑宝石"),
    GREEN(4,"绿宝石"),
    WHITE(5,"白宝石"),
    GOLD(6,"黄金");

    public Integer type;
    private String info;

    GemType(Integer type,String info){
        this.type = type;
        this.info = info;
    }

    public static String get(Integer cardBuff) {
        for (GemType value : values()) {
            if (value.type == cardBuff){
                return value.info;
            }
        }
        return "";
    }


    public Integer getType(){
        return type;
    }
}
